package org.dei.perla.rockfall.gui.queryforge;

import javax.swing.BorderFactory;
import javax.swing.BoxLayout;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.border.TitledBorder;

class RunningStatus6Panel extends ReadableStatusPanel {

	private JTextField jText1;
	
	protected RunningStatus6Panel(String title) {
		super(title);
	}

	@Override
	protected int getStatus() {
		return Integer.parseInt(jText1.getText());
	}

	@Override
	protected void setStatus(int stato) {
		jText1.setText(Integer.toHexString(stato));
	}

	@Override
	protected void setupInternalComponents() {
		
		//Primo blocco di scelte
		
		jText1 = new JTextField();
		jText1.setColumns(10);
		JLabel jlabel1 = new JLabel("Valore");
		JPanel jpanel1 = new JPanel();
		jText1.setText("0");
		BoxLayout layout1 = new BoxLayout(jpanel1, BoxLayout.X_AXIS);
		jpanel1.add(jlabel1);
		jpanel1.add(jText1);
				
		//aggiungo tutti i blocchi
		this.add(jpanel1);
	}

}
